package com.hansming.bss.modules.sfc.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.hansming.bss.common.service.CrudService;
import com.hansming.bss.modules.sfc.dao.OrderItemDao;
import com.hansming.bss.modules.sfc.dao.OrderTravelleridDao;
import com.hansming.bss.modules.sfc.entity.OrderItem;
import com.hansming.bss.modules.sfc.entity.OrderTravellerid;

@Service
@Transactional(readOnly = true)
public class OrderTravelleridService extends CrudService<OrderTravelleridDao,OrderTravellerid> {
	
	@Autowired
	private OrderTravelleridDao orderTravelleridDao;
	
	//查询订单中成人的所有travellerid
	public List<OrderTravellerid> getadultTravelleridByOrderid(String id){
		return orderTravelleridDao.getadultTravelleridByOrderid(id);
	}
	
	//查询订单中儿童的所有travellerid
	public List<OrderTravellerid> getkidTravelleridByOrderid(String id){
		return orderTravelleridDao.getkidTravelleridByOrderid(id);
	}

}
